package com.xpgk.mvc.statistic.dlStatistic;


import com.xpgk.mvc.base.BaseController;
import com.xpgk.mvc.bentryRegister.Customer;
import com.xpgk.mvc.deptStation.DeptStation;
import com.xpgk.mvc.organization.Organization;
import com.xpgk.mvc.statistic.dailyTotalStatistic.DailyNursingTotal;
import com.xpgk.mvc.user.User;

public class DlDailyTotalStatisticController extends BaseController{
	
	public  void  index()
	{	
		User user = getCUser();
		DeptStation deptStation = DeptStation.dao.findById(user.getStr(User.column_stationids));
		if(deptStation!=null && deptStation.getStr(DeptStation.column_parentids)!=null){
			setAttr("mangerIds",getCUserIds() );
		}else{
			setAttr("mangerIds","111");
		}
		String organids = getCUserOrganIds();
		Organization organ =  Organization.dao.findById(organids);
		setAttr("organ",organ );
		setAttr("organids", organids);
		render("dlDailyTotalStatistic.html");
	}
	
	
	public  void  getDailyTotal()
	{
		String json = paging(splitPage,DailyNursingTotal.sqlId_splitPageSelect,DailyNursingTotal.sqlId_splitPageFrom);
		renderJson(json);
	}
	
	/**
	 * 门店报表详情
	 */
	public void lookInfo(){
		setAttr("organids", getPara("organids"));
		render("orgInfo.html");
	}
	
}
